package com.sz.mes.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 转库 Entity定义
* @author hem
* @version 1.0
* @date 2023-12-11
* Copyright © szhs
*/
@Getter @Setter @Accessors(chain = true)
@TableName("transfer_warehouse")
public class TransferWarehouse extends BaseCustomEntity {
    private static final long serialVersionUID = 2014238187447507879L;

    /**
    * 转库单号 
    */
    @Length(max=100, message="转库单号长度应小于100")
    @TableField()
    private String transferNum;

    /**
    * 物料编号 
    */
    @Length(max=100, message="物料编号长度应小于100")
    @TableField()
    private String productNum;

    /**
    * 物料名称 
    */
    @Length(max=100, message="物料名称长度应小于100")
    @TableField()
    private String productName;

    /**
    * 物料规格 
    */
    @Length(max=100, message="物料规格长度应小于100")
    @TableField()
    private String productSpecification;

    /**
    * 转库前库位 
    */
    @Length(max=100, message="转库前库位长度应小于100")
    @TableField()
    private String oldLabel;

    /**
    * 前库位数量 
    */
    @TableField()
    private Integer oldLabelQuantity;

    /**
    * 转库类型 
    */
    @Length(max=100, message="转库类型长度应小于100")
    @TableField()
    private String transferType;

    /**
    * 转库后库位 
    */
    @Length(max=100, message="转库后库位长度应小于100")
    @TableField()
    private String newLabel;

    /**
    * 后库位数量 
    */
    @Length(max=100, message="后库位数量长度应小于100")
    @TableField()
    private String newLabelQuantity;

    /**
    * 修改人 
    */
    @JsonFormat(pattern = D.FORMAT_DATE_Y4MD)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateBy;


} 
